package com.jk.service;

import com.jk.entity.User;
import com.jk.mapper.HelloMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by dell on 2017/6/16.
 */
@Service
public class HelloServiceImp implements HelloService {

    @Resource
    private HelloMapper helloMapper;

    @Override
    public List<User> selectUserList() {
        return helloMapper.selectUserList();
    }

    @Override
    public User selectOneUserById(Integer id) {
        return helloMapper.selectOneUserById(id);
    }

    @Override
    public int insertUser(User user) {
        return helloMapper.insertUser(user);
    }

    @Override
    public int updateUserById(User user) {
        return helloMapper.updateUserById(user);
    }

    @Override
    public int deleteUserById(Integer id) {
        return helloMapper.deleteUserById(id);
    }
}
